

function loadCategories() {
	// OData.defaultHttpClient.enableJsonpCallback = true;
	OData.read(window.webServicesUrl, 
		function(data, response) {
			displayData(data.results);
		},
		function (error) {
			alert("Error occurred: " + error.message);
		}
	);
}

function displayData(categories) {
	$("#categoryTemplate").tmpl(categories).appendTo("#test");
}